<%= format_time_fields %>
<% form_for @autorizacion, :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box">
    <%= f.collection_select :usuario_id, Usuario.activos.all,:id,:nombre %>
    <p><label for="autorizacion_responsable">Responsable</label>
      <span><%= current_user.nombre %></span>
    </p>
    <%= f.text_field :fecha, :class=>"dp required",:size=>10 %>
    <%= f.text_field :entrada,:class=>"timeEntry required",:size => 5,:label => "Hora Entrada"  %>
    <%= f.text_field :salida,:class=>"timeEntry required",:size => 5,:label => "Hora Salida" %>
    <%= f.text_area :motivo, :rows=>4 %>
  </div>
  <%= f.submit "Guardar" %>
<% end %>
